package untils
/**
 * 消息Json返回
 */
func Msg(msg string, code int) (map[string]interface{}) {

	message := map[string]interface{}{}
	message["msg"] = msg
	message["code"] = code
	return message

}
/**
 * layui数据列表返回Json
 */
func ListJson(count int64,data interface{}) (map[string]interface{}) {

	message := map[string]interface{}{}
	message["code"] = 0
	message["msg"] = "操作成功"
	message["count"] = count
	message["data"] = data
	return message

}
